Make the s3 pidfile use the common code inside lib/util/pidfile.c