Work around `read_cmd_fd` issue