Prune directories from module search once we've gone two levels
without seeing any modules.
Sorting modules in undefined binding warning.
Printing an initial message that we're searching.