Added check for SGE to progress bar. If we are running under SGE, we should write to file SGE .o file. Under afs it is doubtful that the file will be flushed anyway making the information pointless.