Avoid -i in sed for cross platform support
Correctly reapply gitconfig changes