Make filetype check case-insensitive.

Some file implementations (i.e. OpenIndiana's) return "html" in
lowercase.
Bump version.