remove the directories before bootstrap