daemonizer writes pid immediately after creating file