Fixed bug in SGE submission of jobs with dependencies.