Fixed raising error when dirs already exist