(VBAT-19) fixed bug where filenames containing ".csv" anywhere other
than the end would cause .trg file to be named incorrectly, which would
prevent them from being picked up by JDA