fixed csv plotter to work on linux and windows