Switch from conditional to strictly using Rails.root.