cmake: cleanup out-of-source build

The build worked, but two files were placed in the source tree.
The default for configure_file is to convert a file from the source tree
to one in the binary tree anyways, so just use that.