Use Rails.root instead of deprecated RAILS_ROOT

We need this to make it work on rails > 3.1 apps.