Make qemu-img argument handling POSIX compliant