Cross-platform pidfile manager