Add support for task that ensures the modules.d property is set