fix pkg.latest bugs

1) state does not care about already installed packages and always try to install all of them
2) if we can not gether info about some available packages it's might be a problem despite of installed packages or not (now it's only become problem if desired package not installed)