Switched to bash script to do ssh upload.