Split up check_setup.php to do a check for the bare essentials (e.g. PHP version) first, then load the config files, etc. and do less important checks which may require access to config variables in the original check_setup.php. Patch fixes #773