add a batch to test if dir exist