Simplify the checking for the package installation