Changed config XML approach. Just building thing from XML template and not dynamically in Ruby. Reason: a lot of folks have no have access to install nokogiri from rubygems.org