revert to using the pid for tmp file names - mktemp -d gives an error on