Fixed rails root for rails < 2.3