config: pass the config path prefixes as a parameter

The config path prefixes need to be configurable.