modified script to run jobs on torque in ext-job