Added additional checkings for the qsub command.