Added option to use a temp dir with the name $PBS_JOBID. Folder must exist before job starts.
(Folder exists on guillimin)