Fixed up to date check when checking for validity of an installed package.