added FreeBSD support to pty plugin