Fix directory test when cleaning existing Homebrew taps
Merge pull request #755 from sbesson/rebased/develop/homebrew_tap_cleanup

Fix directory test when cleaning existing Homebrew taps (rebased onto develop)