get_pkg_name returns pkg path and name