Added option to batch job script to make stdout write to file