fix paths to latex and beamer templates