Ensure output dir exists early.