Fix RAILS_ROOT problem