Fix pkill errors.

Change originally authored by Tony Rice. Edited to include only the fix,
and remove the version bump from this commit.