Update support for SGE, now the log file is normal.
Merge pull request #7 from ny-shao/master

Update support for SGE, now the log file is normal.