public function getModuleDefinition($module)
    {
        $module = strtolower($module);
        
        if (!array_key_exists($module, $this->definitions)) {
            $path = $this->locateModule($module);
            $config = array();
    
            if($path){
    
                $definition = $path . DIRECTORY_SEPARATOR . $this->getOption('definition_file');
    
                /**
                 * Read version from definition file (e.g. definition.ini)
                 * from either module directory or PHAR archive
                */
                if(is_dir($path) && file_exists($definition)){
                    $config = \Zend\Config\Factory::fromFile($definition);
                } else if(is_file($path) && file_exists('phar://'.$definition)){
                    $config = \Zend\Config\Factory::fromFile('phar://'.$definition);
                }
            }
    
            $this->definitions[$module] = $config;
        }
    
        return $this->definitions[$module];
    }