BUGFIX: make sure the directories are always recreated when needed.