Fix path_prefix when Rails.root is nil