Only backup hooks that where not generated by ghooks.
Isolate token replacement on template.