Support older versions of qemu-img

Older versions of qemu-img do not accept a '--output json' option