Use generic_find to find dependencies

Change-Id: I7c7448d071d1fa54970201c26cdd331aae696244