SGE script fix