find_pkg_in_list: get rid of extension