Merge *base_prefix config keys into base_prefix (fixes #996)