Updated to save output log in the job dir too.