Replace RAILS_ROOT with Rails.root