Allow to specify different default directory for Homebrew

Note that neither the cleanup nor the installation will currently work is the Homebrew directory is different from /usr/local
Use word boundary when looking for Homebrew installed git