setting the right shebang and making it prefer global installation.