fix: verify rootDir
and all roots
are directories
#9569
Merged
rootDir
and all roots
are directories
#9569