Tweaked shebang computation.