update bash script writing for SGE