Catches two potential errors:
bsub.py
hangs if no command is given (third required argument)- Checks if the parent directory of the log
.o
and.e
files exists. Dies if not, and does not submit job. Previously, the job would be submitted and LSF would email when finished because it couldn't write the files.