[Libguestfs] [PATCH 1/2] filearch: move libmagic code in an own function