Generate config if missing