mingw: fix the shortlog --output=<file> test