Make App::Daemon check process names, fix taint error when reading the pidfile

Makes App::Daemon check whether the name of the process in the pid file is the same as its own. This helps it deal with leftover pid files that now refer to another process.

Also fixes a taint error when reading the pidfile under -T