Add 1.8.7 compatible hash syntax

Since rbot runs on 1.8.7, console should use same environment. Added compatible hash syntax.
Also changed require_relative and added require for rubygems before nokogiri.