Making pattern search path cross-platform compatible.