Added check for existence of imported folder