Use /usr/bin/env so this doesn't assume node location

Also fix a global leak