make sure pidfile exists before reading it