[install script] Refactors NVM_SOURCE

Deduplication of the code that was defining the source to install NVM from.
any reason not to inline the `nvm_source git` call here?