Set pid in proc file after daemonizing