Guard against bad folder permissions when walking stats directory.

A rather late followup for pull #63.