Added support for uppercase file extensions