Fixes #3830: correct detection of package inconsistancies on debian for ...

...arch