posixify paths for Windows latex

latex on Windows apparently doesn't support Windows paths.

alternative to #3886

closes #3885