fix wrong require sequence

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