Fixed an issue with the setup check/redirect. It was calling the headerFunction which is part of the library.php file. since this was not included above the settings.php check it was throwing a PHP error and not redirecting accordingly. Replaced the headerFunction call with the native header function.