Create missing directories.