[Libguestfs] [PATCH 4/6] dib: refactor output formats handling