Fix admin/teacher "see code" feature
Add require that is only needed in some envs