languages: must pre-compile shebang regular expressions

(integrated from trunk branch change cded6da by Todd Whiteman <toddw@activestate.com>)