Platform independent file separator

Current implementation does not work on Windows. This fix works on Unix/Win