Scan thread deletes empty folders in working directory