set MEDIA_ROOT based on nginx context