CopyFile: Don't touch copyFile target if it is identical.

This can prevent a lot of recompilation when using ghc -M / -c.