fix bug when printing usage. changed permission on script-gen.py