Correct absolute path for templates