Avoid using mktemp for temporal filename