Improved shebang computation.