config: handle default and override using file