Borrowed and modified archive_util commands from setuptools.
Now correctly untars files.