Add handling code for SGE alongside PBS.