remote.c: hoist read_config into remote_get_1