dot-is_pkg_installed function

Check whether a package is installed