[libvirt] [PATCHv2 1/7] virt-login-shell: fix regressions in behavior