hcoop-git-maint: Improve detection of bad permissions.