CRM-15764. Remove bogus `opendir($cmsIncludePath)` which was presumably trying to be `is_dir()` and not required since we check `file_exists("$cmsIncludePath/file.xxx")` and that indicates that the directory exists.