build: Only copy generated files if out-of-source.