Ensure npm scripts are run after restoring cache

After the `node_modules` directory is restored from cache, `npm install --production` will be run if anything is present in package.json's `scripts` field.