[Libguestfs] [PATCH 3/5] dib: extract get_required_tool out of require_tool