Fixed references to RAILS_ROOT in rake tasks.