Fix stupid mistake
Make the log file name pid controllable (again)