Changed qemu-img to execute from qemu home and added check to empty host state file