Updated CMake to proper use configure_file