Fix available_version for apt, pacman

Per https://github.com/saltstack/salt/pull/3166#issuecomment-11957285,
change available_version so that it returns an empty string if the
available version is not an upgrade or new install.
Merge pull request #3187 from archtaku/issue2906

Fix available_version for apt, pacman