cpr: fix repo URL path detection

* https:// protocol (before only git: protocol was supported)
* repos with `-` and `_` in names