handles understood index.html for subdirectories

The original code renders the template `/index.html` to the route `/` after finding "index" in the `page.output` string.

The updated code adds the correct subdirectory so all `index.html` will route to the correct subdirectory (ex: `/teams/index.html` routes to `/teams/` when running `statix:server`).