fix sshwrapper duplicate calls and using pdflatex