Add version checking for packages