Use different method for package checking

[ci-skip]