Fixed bug: can also hide directories without index file