Handle Rails.env.blah? even if Rails isn't loaded.