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_inst