Declare more variables as local
Fix nvm ls-remote and display uninstalled versions again. Fixes #359, closes #360
Merge pull request #361 from drkibitz/local-vars

Declare more variables as local