Fix detection of git bitbucket repos with incorrect URLs, fixes #2095