Finish Posix support for pexpect