Make all extends statements relative to templates directory

Even if source file is in a subfolder, the extends metadata key will be relative to the root of the templates folder