Updated RAILS_ROOT syntax to Rails.root for Rails 3