TEST: Fixes query tests for Windows.

Since process substitution is not supported in msysgit, falling back to
regular pipes.