upgrade bin/nvm.bat logic