Do the directory walk dance instead of repeated stat calls as it seems to be faster...