Add support for complete qsub

This is needed by the Jenkins PBS plugin (which is why my pull request fails :)). Again, probably needs major clean-up.