fixed template_context to copy templates corectly during rake task