Use environment instead of RbConfig