remove options from shebang and move to end of script for portability across shells