fixed filenot found with relative path of templates