Make sure that the write directory has been created