Fixes #7566 - added support for dependeces among modules