protected function _copyAssets(PackageInterface $package)
    {
        $path       = rtrim($this->getInstallPath($package), '/');
        $asset_path = $path.'/resources/assets';
        $vendor_dir = dirname(dirname($path));

        // Check for libraries/joomla. vendor directory sits in libraries/ folder in Joomla 3.4+
        $is_joomla = is_dir(dirname($vendor_dir).'/joomla') || is_dir(dirname($vendor_dir).'/libraries/joomla');

        if ($is_joomla && is_dir($asset_path))
        {
            $manifest    = $this->_getKoowaManifest($package);

            $root        = is_dir(dirname($vendor_dir).'/joomla') ? dirname(dirname($vendor_dir)) : dirname($vendor_dir);
            $destination = $root.'/media/koowa/com_'.$manifest->name;

            $this->_copyDirectory($asset_path, $destination);
        }
    }