Improve package version checks.