fix: bare repositories do not have .git dir