config: report a bug if git_dir exists without commondir