Fixed index.js to support windows' inability to run batch files directly using system calls.