avoid using monkeypatch `Pathname#/`

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

avoid using monkeypatch `Pathname#/`