generate full path to templates directory