support for .tgz file ending

I'm working on DokuWiki and noticed that the download couldn't be done because the .tgz file ending was missing.