Use printf instead of `echo -e`

Fixes #446
v0.9.0
Make sure `nvm ls foo` returns a nonzero exit code when a version is not found.

Fixes #440.
Make sure these vars are local, where supported