avoid using monkeypatch `Pathname#/`

which was inherited from Homebrew
Merge pull request #284 from rolandwalker/avoid_pathname_slash_monkeypatch

avoid using monkeypatch `Pathname#/`