Allows custom directory for email templates

cc @SiR-DanieL