[ExtractionScript]

Fixed a bug that log CSV at the wrong place.
Fixed a bug that prevent looping of all TXT files.