Get list of all required modules recursively