protected function fixCaseInsensitiveFilename($finalTarget)
    {
        $targetFile = basename($finalTarget);

        if ($this->isCaseInsensitiveFilename()) {
            $finalTarget = str_replace(
                $targetFile, StringUtils::lower($targetFile), $finalTarget
            );
        }

        return $finalTarget;
    }