Rewored Xen's autoconsole script to work under libvirt/qemu guests