fix customized template dir path error.