Bug fix to correctly identify file types regardless of case of file name extension