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

Fix directory test when cleaning existing Homebrew taps