build: support modules in config builder