Fixed PROJECT_ROOT and moved templates dir