path normalization fixes for windows

special thanks to @monkeez for helping out
Merge branch 'windows-fix'