Make base directories only

This seems to make directories including the file name itself. This change makes only the directories.