Fixed package dependency check.