Test case for case causing error
Handle empty shebang with whitespace
document shebang code
Add missing test cases
Use #start_with? for clarity
Merge pull request #1854 from github/more-shebang-fixes

More shebang fixes