Give up on Ruby 1.8.7, PTY.spawn is not reliable in reading STDOUT.