Fixed bug in external dependency search.