handles understood index.html for subdirectories