Append pid to errofile and logfile.