added individual tmp-file naming for array jobs