Cross-platform process management: pgrep/pkill on Unix