Improved listdir to handle unreadable directories. Fixes #9156.
Update logging
Merge pull request #722 from joshmoore/rebased/develop/dropbox-listdir-9156

Fix DropBox on Linux (Fix #9156) (rebased onto develop)