Changed directory separators to use path.sep instead of '/'.

This should fix #39. I tried to change as little as possible.