cleanup cached directories