Update check of git URL to allow sources without a trailing /