do not invoke `capture("mktemp")` for local tempfile