Fix internal shell not working on Windows [Part 2]

 - Fix internal shell not working on Windows