fixing issue in package.json generator