clean up pid filename handling, internally, and change to location to /var/run/

Signed-off-by: Russell Senior <russell@personaltelco.net>