Fix NVM_DIR discovery
added nvm unload method to remove nvm from shell
Added test for nvm unload
Merge branch 'fix-tests' into ci