comptibility for unreadable folders

after I experienced problems with unreadable folders (permissions set to inaccessible, as for /logs), this helped me out to make it work