Why don't you use something like:
```ruby
Pathname.new(`#{binary}-config --prefix`.strip)
```

Should be more robust against changes in the future.