avoid using monkeypatch `Pathname#/`

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

avoid using monkeypatch `Pathname#/`