add some basic compression file type detection

This is to support older versions of tar that cannot auto-detect the compression type.
Fixes #21