Added support for case-insensitive extension matching