Added support for winpexpect, hopefully not to hacky