git-archive: infer output format from filename when unspecified