Only add 'index.html' if the path ends in a '/'

Perhaps dealing with https://github.com/jekyll/jekyll/pull/2294