monkey patch for improved vagrant pty support