Fix `--check-config` usage. Refs #884.