Use "typeset" instead of "local" for portability
Refactor so "finding .nvmrc" can be done in a bash function.
Find `.nvmrc` files upwards.