Fixed path to template.tex to use relative path based on script location

Signed-off-by: Stefan Marr <git@stefan-marr.de>