Latest version by minimal os version

Extended fix to cover version and os minimal version as well