Use pkgrepo state only for apt/yum based systems

Fixes #5