Fix deprecation warnings about RbConfig.