Ensure output directory exists