fixed bug in shebang processing