MT#6485 add proper checks for virt-identify