fix #7579, Windows bootstrap error TTY not defined