changed tempfile directory from /scratch to /remotescratch, so that jobs on different nodes can access tmpfiles