Fixed shebang check. Previously it would hang on an unknown shebang