bugreport.c: replace strbuf_write_fd with write_in_full