Find again the cmake executable if the current setting is wrong
Fallback to the first cmake on PATH if the file on the settings doesn't exist.
(cherry picked from commit 1d63ccba3d3fb522754e6a3f56c8b4f3efd4290f)