properly write the pid (not 0) to the pidfile in single fork mode (GH#49)