Fix detection for invalid shebang

A file with the first line matching `/^#!$/` currently causes an exception. This fixes the regex to require some other content.

/cc @arfon @jakedouglas