Handle pty unavailability on windows
Merge pull request #625 from sudarshang/623_windows_pty_fix

Handle pty unavailability on windows