Avoid overwrite file that has not changed