use YY_CURRENT_BUFFER instead of temp FILE (#4871)