File type diff should be case insensitive.

I think the file type diff should be case insensitive so I added these code.