Invoke mkdir only when directories are not found