Improve 'latest' handling to stay with correct VARIANT, VERSION, RELEASE, BRANCH