fix synchronization for minify and make gzip be the last step