Adding queue.pid to be written to the temp dir