adjust test to work on Cygwin

On Cygwin, $$ is the cygwin process id, which is different from
the Windows process id.