Dynamically create config.json