Fixed bug in ruby-terminal.sh, removed obsolete code