This re-read of platform_json is essential here. It gets overwritten by config_changes.process() above so we need to read the new version. This is ugly, but for now it's better to leave it this way. I hope to tackle this problem in one of the future refactoring rounds.