fix a bug in application about not found
remove prefix / in path
rebuild config
add TEMPLATE_DIR