fix deprecation warnings about Config/RbConfig