[config] fix check_dir() errors from commit d49fa145fdf1f016e2ba8ff5ea73213c072624f2