Only unlink the pidfile if it's actually used.