Better checking of device path in virt module