I think there might be a issue with the ftp uploading.
I keep getting password required, then it would just prompt exit Y/N
I believe you cant have the "" when you echo the FTP info to the ftpcmd.txt
It should be:
Echo userName> ftpcmd.txt
echo passWord>> ftpcmd.txt
This worked for me. I wasnt sure how you got it to work.