Remove dependency on expect package.

Instead use ruby, PTY and expect.