modify script generation program
Merge pull request #152 from irvs/issue148

modify script generation program