added a check if a folder exists before includig the tasks