set home variable on npm command

Fixes #50 

Borrowed from https://github.com/puppetlabs/puppetlabs-nodejs/pull/59