Fix filenbmanager.list_dirs fails for Windows user profile directory
only check listdir on dirs

is_hidden is called with files, not just dirs
Merge pull request #5390 from minrk/finish-5333

finish PR #5333