Idempotent directory creation