Overwrite only when are differences between output and the already generated file