Improve job submission scripts.

Use git to fetch specified version of code.
Output script which can be used to resubmit.