Fix `nvm ls` with multiple installed versions

The `-a` flag for `basename`, dropped in commit 335456d, was needed
to instruct it to not ignore the arguments after the first one.

Switch to using `find` to invoke `basename`, with no current directory
change.

With this the 'Running "nvm ls" should display all installed versions.'
test passes again.