employ the correct full path returned by mktemp