Rescue all errors, include Errno::EDENT

- Fixes #734 on master