fixing slashes for windows

path.join gives backslash on windows, replacing with forward slash.
Merge pull request #1 from henningc/master

fix: fix slashes for Windows while stripping a path