Fix bug in checking for SGE pename on non-SGE systems