Detect archive type for old version git.