Ensure deleted method will wait until a directory really deleted