Fixed .tar.gz/.tgz zipped bag issues.

refs #5714

Fixed issues with extracting files from zipped bags that are
compressed via tar/gzip.