Fix windows build

I think the delete statement was just a typo. Also, needs to use the latest version of peters/winpty. Thanks to @peters for merging that.