Fix git repository name check for directories that aren't git repos