Fix for traversing directories without permissions.

Traversing a directory for which we have no permissions
for raises an exception. We catch that and skip the
directory.