Correcting the mistake in 14ba90816930

Addresses Issue #18553: isatty is not Unix only.
Correcting the mistake in 678e3c0d2d99

Merge from 3.3
Addresses Issue #18553: isatty is not Unix only.