[install script] Refactors NVM_SOURCE

Deduplication of the code that was defining the source to install NVM from.
I see the test for when the method is not supplied, but when the method is supplied and isn't "git" or "script", can this function explicitly error out and print a message to stderr?