fixed nvm_version result when multiple versions match the given pattern