Proper pidfile writing