Fixed run-shell to handle newer qemu's output of pty information.