changed system call to work for win & linux