Various fixes: add --git flag, split path '/' on Windows