export NVM_DIR before sourcing nvm.sh
Merge pull request #428 from koenpunt/export-nvm-dir-in-profile

export NVM_DIR in profile before sourcing nvm.sh