Fix the uptodate logic (uptodate if !find newer dirs than the cache).