Fix qemu check log logic