Support case insensitive names

Pull request for https://rt.cpan.org/Public/Bug/Display.html?id=84982