This looks to me very strange, in the worst case and if things went bad you have much more output than that.
Have you extracted the TA content in a Windows workstation ? I would be tended to think that the content of scripts has been trans-coded during the transfer step (it is probably currently in Windows format instead of Unix, it should be UTF8)
To say this differently you probably have ^M symbols in the file.
Check the permission (is the file executable ?, by default it is maybe you lost this because of the way you extracted or transfered it to your deployment server)
I would strongly recommend transferring the tgz archive and then extract it on the deployment server if you are using one, or on the UF if you are not using deployment server