BUG: Prevent extension factory checkout error using git read-only url

Detect read/write git url and convert them to read-only scheme.

Fixes #2395
Fixes #2032

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22231 3bd1e089-480b-0410-8dfb-8563597acbee