Move everything to use the common pidfile functions.