Fixing places that call RAILS_ROOT
Merge pull request #1821 from daviddavis/rails_root

Fixing RAILS_ROOT