improve git process spawn and it's output
improve rewriting

flags R, P and Rxxx; also various parts or url could be matched, not
only pathname