Fixed the NVM Installer

The NVM installer was using 'echo' statement when echoing the string with '\n' in it. 'echo' statement doesn't work with '\n' and thus we have to use printf command. The official installer does use 'printf' itself ([link to official](https://github.com/creationix/nvm/blob/master/install.sh#L126)).

This pull request fixes the issue.