check that the actual package manager is if required

Signed-off-by: Mattias Andrée <maandree@operamail.com>