What about just doing:

```ruby
%x{cd #{Katello::Engine.root} && rubocop}
```