fix codeintel_scan_exclude_dir for JavaScript / add support for PHP

I added codeintel_scan_exclude_dir support for PHP to reduce the number of import dirs