fix update.php

sanity_check must be included after config or it will always fail to find nonstandard folders
Merge pull request #47 from xaberus/master

fix wrong require sequence