Recursively build a dictionary of Sails modules.