Fixed issue with file sperartor when identifiying plugin directory