EAPI="5-progress": Support case-insensitive matching of extensions in unpack().
dohtml: restore behavior noted in bug #425214

This goes along with commit 2110ec6ed42fc306d5c25cbf970d013ff2a226fd,
adding support for trailing /. as well, since it's used at least by
distutils-r1.eclass.