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
Merge pull request #6 from cukabeka/master

comptibility for unreadable folders