Platform independent file separator

Current implementation does not work on Windows. This fix works on Unix/Win
won't `path.sep` output another OS-compliant slash? (back or forward)