Getting rid of RAILS_ROOT and fixing a .sub