Help: get_filename_component: fix version info for cmake_path

Fixes: #22505
1 file changed