Better handling for index.html files