More robust SDK version parsing

nRF Connect for VS Code

tags
nRF Connect for VS Code

The available SDKs are presented with their version number, which is parsed from the VERSION file in either the nrf or zephyr folder. Additionally, the versions are sorted by their version number.

To support this, the extension has to interpret the versions as semantic version numbers, which could fail if the VERSION file was malformed. Unfortunately, malformed versions could crash the extension in certain corner cases, but this has now been fixed.