Create the directories first