refactored obtain cellar paths of homebrew