main: Collect and validate config from all sources