Fixing RAILS_ROOT

Fixing RAILS_ROOT since it no longer exists in Rails 3.2+