fix detecting not writable cellar in homebrew, fix #1785
NEXT: [GH-1785] for 1.19.2