only produce diagnostic warnings in regen/regcomp.pl when STDERR is a terminal