Path in extends directive

Treat the path in the extends directive as relative to the specified template directory, rather than the source file.