[libvirt PATCH 6/6] scripts: group-qemu-caps: separate file operations from the check