Extract the correct shell name and version from the registry.