cmake-gui: Fix "Open Project" for VS IDE with space in path
Do not encode the path for a shell until after we check that it exists.
Fixes: #18501 (closed)
Do not encode the path for a shell until after we check that it exists.
Fixes: #18501 (closed)