Add app_root method that handled Rails.root, which is a String in old Rails versions