Use os.path.sep for Windows support

Fixes #238
Replace another slash I missed.
Added a test for the path handling and found a bug
Merge pull request #276 from d0ugal/win-path

Use os.path.sep for Windows support