updated npm install script for compatibility with homebrew