File extensions and cleanup of packaging

o Better detection, should now handle tar.gz and similiar.