fix #93. Only write a transformed file if the transformed results are different from the original file