bug fix for run.n script(for Windows)