Revert "Revert "modified qsub command invocation and getopts args""

This reverts commit 9ffa103e7807c3d0d558fe4bf900f3800c45cb83.