rename type directories to lowercase