nvm: improve default detection
nvm: improve default detection

This is also (marginally) faster than before.

dritter/powerlevel9k,dritter/powerlevel9k,natemccurdy/powerlevel9k,natemccurdy/powerlevel9k,bhilburn/powerlevel9k,bhilburn/powerlevel9k