This make dir should be outside the for loop. We just need to create the directory once.