Add a new function pkg_dep_lookup to avoid uselessly looping on deps