Add to check directory existence.