Cleans up config.json to remove nonessential modules.