config: use error() instead of fprintf(stderr, ...)