Made error message in check_redirection() write to stderr.