tar can automatically detect archive type from 1.15 version (2004-12-20)