fix path handling on Windows

replace hardcoded path separators with path.sep