Cleanup cleanupDirectories list after cleanup of directories.