added possibility to use index.html in subfolders.