Fix the npm postinstall script for production installation