Revert "Remove looking for dependency"

This reverts commit 6cd921398306baff9566ca6113289ddf321486ec.