Fix Windows build

Use github.com/mattn/go-isatty to check terminal