properly rename the directories to lowercase