Fix import of codegen templates

Your fix may only work if the package is installed.