Check dir When FlatCacheProvider is construct