Changed scratch to include the job_id as well. This resembles actual use of the scratch dir.
Also, if GWF_SCRATCH is not set, then ~/.gwf-scratch/  will be used.