added OSX support for the pty plugin