Improved the git dir detection.
treee84c2f569f4d5b96d605ab33b21e51f9872d9556
drwxr-xr-x - contrib