Add some fancy-pants directory handling so that index.html works as expected.