added toLowerCase() against file ext
added toLowerCase() against file ext