Cycle through all directories inside template, #2