Keep latest tag at latest version is published version is smaller

Currently if there's a package with version 2.0 in the repository and a package with version 1.9 gets published, 1.9 will be tagged as "latest". This pull request leaves the latest tag untouched if a package with a smaller version is published.