Add missing directories.