Bugfix lookup licences by exact id or substitute most recent version

Now treats licence id lookup as an exact match, not case insensitive

if lookup fails then do case insensitive search either for specific version if id ends in x.x or pick latest version otherwise.