FindMatlab: Fix major.minor version lookups in Windows Registry
The registry key names use only the first two version components. Previously we were using the full versions.
Also update the method of querying the registry and makes the paths CMake style.
Fixes: #25582 (closed)
Backport: release
Edited by Brad King