Changes to work with winpexpect.