Lookup versions for :latest as well as :installed

If there is a package vesion in version files take it
instead of the latest version from repository not only for
:present and :installed packages but for :latest too.

There was no :latest packages in out manifests before
but now we have some again and without his fix rollback will
not work for these packages.

Change-Id: Ifd14d644d1da4172e92562d693f74d2f542982dd
Closes-Bug: 1348658
Merge "Lookup versions for :latest as well as :installed"