Convert to OS path when running git