Fix problem where gzipped files were always re-uploaded