Use Rubocop

But only if `path_begin` cannot be `false`. That is a different kind of change than I want to do in this PR.