Fixed config file move with new config path.

Fixes #1082.
Merge pull request #1083 from rhyolight/cmake-cfg-fix

Fixed config file move with new config path.