Fixed the name issue so that now the directories are created properly