fix Config deprecation for ruby 2.2