Check that specified package version is valid