Fix attempting to update media directories when the site dir is moved.
Review Request #8038 — Created March 7, 2016 and submitted
We had old code that tried to update MEDIA_ROOT when the directory moved. However, this code was updating the wrong variable (setting MEDIA_ROOT to the static directory), and never tried to actually fix STATIC_ROOT. This was clearly wrong, and has been for some time. We now properly update the two variables based on their respective paths and settings.
I hit this issue after moving my source tree around. This fixed it,
setting the correct paths for both variables to their correct new values.