fix resolving directories to index.html