Bug fix that broke CLI email scripts; need to import var