change tmp file name to prevent functionality loss when run with a tmp directory in the current directory