ok, this is a left over from the code I used when I didn't knew about mkdir recursive feature (and btw, I forgot to update the code to enable that recursive feature...)