testNormalization: path bug fix.
Change the sfactor finding method to string comparison.
meanPTCalculator: flush to file when one calculation is finished.