piuparts.py: Report adequate version used.
p: factor out a is_package_installed() method

and handle the piuparts-depends-dummy package separately

Signed-off-by: Andreas Beckmann <anbe@debian.org>