fix npm lookup; global changing of process.argv (issue #40)