Fix check for right attribute for qemu-img support.