change generate_shell_script. It gives better results (string replacement, interpreter, galaxy root directory (...))