Fix path delimiters in Windows

Use `path.delimiter` to get the system specific path delimiter.