address rails3 deprecation: change all instances of RAILS_ROOT to Rails.root.to_s

address rails3 deprecation: change all instances of RAILS_ROOT to Rails.root.to_s