added some checks for existing directories to avoid potential confusion
added some checks for existing directories to avoid potential confusion

EducationalTestingService/discourse-parsing,EducationalTestingService/discourse-parsing