fixed memory bug in paths.tmpname()