Only allow printing to stderr if it's redirected