hosts/darwin: use a temp dir since Tempfile is deleted right away