Remove unnecessary folder creations since os.path.makedirs() creates recursively.