Fix offline usage of activator with current templates

Review by @havocp and @jamesward (plus cleanup).