fix abs path to template dir