Improved shebang processing on build.
Improved test.