modify shebang lines and remove a script