ticket #393 handle tar and zip files a bit more gracefully