Fixed paired edge creation to work with gzipped files.