modify ruby shell script