throw more descriptive error if a template directory does not exist; closes #52