added support for merging gzip compressed files