Fix rubocop.yml not found in top-level directory

Follow up to my last pull request. Pathname#ascend stops at the last path element. Thus the rubocop yml in the top-level directory was not found.

This should fix it, plus a few simple specs.