spawn-test: Use an absolute path to the system sort.exe on Windows
That way we avoid executing other kinds of sort.exe which may be available in PATH. This is especially useful on MSYS2 because it provides coreutils sort.
Also add a workaround for #2921 (closed) (to be removed when the issue will be fixed)
Edited by Luca Bacci