Clean up a bit.

Don't guard this behavior with a policy because it is too noisy.

Use cmGeneratedFileStream to atomically create the file.
Merge topic 'file-generate-if-different' into next

0f1d42ba Clean up a bit.