Use unique name for temp file to prevent naming collisions