fix codeintel_scan_exclude_dir for JavaScript / add support for PHP