Fix killing the test server.

The '%1' argument seems to be non-POSIX and does not work well with
dash. Store the forked PID instead, and use it directly to kill the
server.
Merge pull request #28 from mgorny/fix-tests-hang

miniupnpc: fix killing the test server.