Rewrite git host regular expressions