Remove s3 logic and add a check to ensure course directories exist.