fix getting value from stdin on windows.