bug fix for workdir in SGE submit