Platform independent file separator

Current implementation does not work on Windows. This fix works on Unix/Win
@tomkis1 whats the purpose of the double backslashes here? `\\`