Correcting the mistake in 14ba90816930

Addresses Issue #18553: isatty is not Unix only.