I think you can just use RbConfig and leave out the Config stuff, which is deprecated, since [RbConfig was part of 1.8.7](https://github.com/TwP/bones/pull/29). 

You probably need to require this at the top of the file:

```ruby
require 'rbconfig'
```