Fixed the mkdir action list so it only adds a dir to the list once.

Before there was an entry in the mkdir list for every file, since the directory isn't made until the end. This just cleans the output up a bit.