Changed regex in Tex_GetTempName() to correctly match '/' and '\' at the
end of line on windows.