Fix returned capitalize repo name issue.

The capitalize repo name cause get repo id failed, use toLowerCase()
before compare.