Fix tag URLs

Add missing close tag in archives.html, and fix URL generation for tags whether a custom TAG_URL is set or not.

Tested with both default settings and with the following:

TAG_URL = 'tag/{slug}'
TAG_SAVE_AS = 'tag/{slug}/index.html'