It would be safe to add here an additional line:

```ruby
#{echo_cmd %{rbenv rehash} }
```

Just to be sure that `gem install` will use proper ruby.