[install script] Refactors NVM_SOURCE

Deduplication of the code that was defining the source to install NVM from.
let's call this var `NVM_SOURCE` as well, for consistency.