Generate config during build, remove partially ported config generator