Ensure the directory is created.