diff --git a/src/Drupal/Driver/Cores/Drupal6.php b/src/Drupal/Driver/Cores/Drupal6.php
index <HASH>..<HASH> 100644
--- a/src/Drupal/Driver/Cores/Drupal6.php
+++ b/src/Drupal/Driver/Cores/Drupal6.php
@@ -29,8 +29,10 @@ class Drupal6 implements CoreInterface {
     }
 
     // Bootstrap Drupal.
+    $current_path = getcwd();
     chdir(DRUPAL_ROOT);
     drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
+    chdir($current_path);
   }
 
   /**
diff --git a/src/Drupal/Driver/Cores/Drupal8.php b/src/Drupal/Driver/Cores/Drupal8.php
index <HASH>..<HASH> 100644
--- a/src/Drupal/Driver/Cores/Drupal8.php
+++ b/src/Drupal/Driver/Cores/Drupal8.php
@@ -29,8 +29,10 @@ class Drupal8 implements CoreInterface {
     }
 
     // Bootstrap Drupal.
+    $current_path = getcwd();
     chdir(DRUPAL_ROOT);
     drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
+    chdir($current_path);
   }
 
   /**
Follow-up to issue #<I>.