Copy remote job scripts to a temp file and rename it.

This avoids problems due to the job file overwriting itself when suite
and task host share a filesystem.
Merge pull request #950 from hjoliver/job-submission-fix

Copy remote job scripts to a temp file and rename it.