Previous commit was not based on master, retry. Removed broken tar cutter, double extensions are not possible in temp files. Added tar support. Fixed extension switch.
Merge pull request #10142 from owncloud/fix-#9283-gzip_support

Removed broken tar cutter, added tar and fixed extension switch.