fix update.php

sanity_check must be included after config or it will always fail to find nonstandard folders