Fix detection for invalid shebang
Merge pull request #1813 from github/invalid-shebang

Fix detection for invalid shebang