Added isInstalled(package) for dpkg and rpm.