Compatibility with nvm

This fixes the husky hooks to work with NVM (node version manager). See https://github.com/creationix/nvm