diff --git a/src/Controller/SpiController.php b/src/Controller/SpiController.php
index 433c753..c1cd1ba 100644
--- a/src/Controller/SpiController.php
+++ b/src/Controller/SpiController.php
@@ -274,14 +274,14 @@ class SpiController extends ControllerBase {
    *   1 if they are removed, 0 if they aren't.
    */
   private function checkFilesPresent() {
-    $server = \Drupal::request()->server->all();
+    $document_root = getcwd();
     $files_exist = FALSE;
     $files_to_remove = array('CHANGELOG.txt', 'COPYRIGHT.txt', 'INSTALL.mysql.txt', 'INSTALL.pgsql.txt', 'INSTALL.txt', 'LICENSE.txt',
       'MAINTAINERS.txt', 'README.txt', 'UPGRADE.txt', 'PRESSFLOW.txt', 'install.php',
     );
 
     foreach ($files_to_remove as $file) {
-      $path = $server['DOCUMENT_ROOT'] . base_path() . $file;
+      $path = $document_root . base_path() . $file;
       if (file_exists($path)) {
         $files_exist = TRUE;
       }
@@ -746,11 +746,11 @@ class SpiController extends ControllerBase {
    *   An array containing some detail about the version
    */
   private function getVersionInfo() {
-    $server = \Drupal::request()->server->all();
+    $document_root = getcwd();
     $ver = array();
 
     $ver['base_version'] = \Drupal::VERSION;
-    $install_root = $server['DOCUMENT_ROOT'] . base_path();
+    $install_root = $document_root . base_path();
     $ver['distribution']  = '';
 
     // Determine if this puppy is Acquia Drupal.
