autoconfigure libvirt: bullet-proof version