Fallback to the first cmake on PATH if the file on the settings doesn't exist. (cherry picked from commit 1d63ccba)