Ensure Selenium command always uses brew's version
Optimize __npm_dir_expand when not in NPM dir
Close scope on var