constants: Refactor load_config_file() to make lookup debug easier