Fixing deploy_to script for remote server