Added @pietpiraat 's fix to decompress gz