Support reading config from file.