path normalization fixes for windows

special thanks to @monkeez for helping out