Fixes broken generated package.json files