Added case insensitive extension checking