Improve robustness of ftp_upload script

No longer dependent on executable bit being set