[libvirt] handle different version of QEMU