BZ-1039716: Added support for dynamic module dependencies.