bug #15602: use echo for error messages if STDERR is undefined