Fix bug eshell prompt not working on windows.