Fix deprecated warning.(Config to RbConfig)

I fix deprecated warning.
Should using RbConfig.
Please, merge my commit.