linux fix for pty hack