Adds method to find all modules given a directory root.