Fix GZIP saving. Add -g argument.

I really like the work you've done here. I noticed, though, that saving with GZIP compression didn't work, as the compressed stream wasn't being flushed/closed (resulting in the file giving end of stream while decompressing). I also added the -g argument, since I find myself more often messing with compressed files in MC world folders.