commit: Handle printing correctly on non-mswindows.