check for script or text for non-binaries
Fixed typo around PBS_JOBID
better handling of scripts vs. binaries