Catch errors while walking the filesystem

An EACCES during a filesystem walk stopped the walk with a bubbling error.

Fixes #1008
Merge pull request #1082 from zoranzaric/fix-1008

Catch errors while walking the filesystem