updates npm install script to check for package.json file first