in reply to Setting #! path using environment
If you're on linux or the like, the env command should be able to do the trick.