move isPackageInstalled to module tools