add args support for check-config.sh Upstream-commit: 77815c5492a20afc390b70ada662c3dc58e682c7 Component: engine