[FIXED JENKINS-4613]compare hostname in case-insensitive manner

Solved remaining problem of https://issues.jenkins-ci.org/browse/JENKINS-4613
Normalize url with getSVNURL() as in isSameRepository() and avoid unnecessary switch.