I also got a solid red upon trying to run the install_tools payload. So, I connected via serial and tried to run install.sh manually and also got the "unexpected end of file" error. When I opened install.sh in vi I noted it had ^M line endings, so I copied the file from github and pasted the text of it into a new install.sh, which ran fine. It looks like the original was created on Windows and the line endings cause some problems.
I still got the solid red on running it, and discovered that after moving impacket and responder to /pentest there were two things remaining in tools_to_install (._impacket and ._responder) that show up with ls -A (which the script runs to check that the move was successful) I rm'd those, and did an rm -rf on /pentest and re-ran install.sh, which now completed successfully.