Don't force the permalink to be a dir if it ends on .html

This is solely so a mergable branch can run against Travis and any fixes can be
dealt added as needed.

Code completed by @maul-esel in #963. Reference #963 in History.markdown.