git-each-repo: add support to detect bare git repo