Added phpws_source_dir to directory checks