fix parsing paths with different separators (to support Windows); remove path separator, use pipe sign to separate by RE expression