protected function checkModuleCommand($module, $remote = null)
    {
        $this->readProperties();

        $drushVersion = $this->taskDrushStack()
            ->drupalRootDirectory($this->getConfig()->get('digipolis.root.web'))
            ->getVersion();
        $webroot = $remote ? $remote['currentdir'] : $this->getConfig()->get('digipolis.root.web');
        $projectroot = $remote ? $remote['currentdir'] . '/..' : $this->getConfig()->get('digipolis.root.project');
        if (version_compare($drushVersion, '9.0', '<')) {
            return  'cd -P ' . $projectroot . ' && '
                . 'vendor/bin/drush -r ' . $webroot . ' cr && '
                . 'vendor/bin/drush -r ' . $webroot . ' cc drush && '
                . 'vendor/bin/drush -r ' . $webroot . ' '
                . 'pml --fields=name --status=enabled --type=module --format=list '
                . '| grep "(' . $module . ')"';
        }

        return 'cd -P ' . $projectroot . ' && '
            . 'vendor/bin/drush -r ' . $webroot . ' cr && '
            . 'vendor/bin/drush -r ' . $webroot . ' cc drush && '
            . 'vendor/bin/drush -r ' . $webroot . ' '
            . 'pml --fields=name --status=enabled --type=module --format=list '
            . '| grep "^' . $module . '$"';
    }