Fix an output redirection error.
Add tests for "`nvm use default` on source" behavior.