Solved some portability problems with the qsub command.