Added support for lowercase file extensions.