packages: correct package stripping during check.

Fixes bug #116