Checking for installed packages did not function properly