Add support for tar files, issue 464