minor bugfix: tmp.out is not written if job is part of a job-array