fix protocol check for cli's rev-parse --resolve-geogit-dir