Fixed writing correct config.rb path.
Unfsck bundled RubyGems.