Moved decision about location of registry database into the CMake configuration.