fixed pathsplitting. now uses os.sep instead of '/'

with that changed it works great on windows.