Add a fix for paths being included in job files if jobs are created with zipfile
Actually make use of the temp var for the scratch path