diff --git a/src/Handler.php b/src/Handler.php
index b82ed4a94074aa55fea71391f13eea50256064b3..23d11aa8cfddb0b75aea34926a15a4be89d4c714 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -139,7 +139,7 @@ class Handler extends BaseHandler {
    * {@inheritdoc}
    */
   protected function postInit(): void {
-    $this->env->put('PHP_VERSION', $this->config->readValue('php/version'), TRUE);
+    $this->env->put('PHP_VERSION', $this->config->readValue(['php', 'version']), TRUE);
   }
 
   /**
@@ -149,13 +149,14 @@ class Handler extends BaseHandler {
    *   Whether to overwrite existing config files.
    */
   public function configureProject($overwrite = FALSE): void {
-    $this->init();
 
     // We only do the fancy stuff for developers.
     if (!$this->isDevMode()) {
       return;
     }
 
+    $this->init();
+
     $fs = new Filesystem();
     $installationManager = $this->composer->getInstallationManager();
 
@@ -312,7 +313,7 @@ class Handler extends BaseHandler {
       ],
       'vhost.conf' => [
         'dest' => $projectRoot . '/apache',
-        'condition' => $this->config->readValue('webserver/overwriteconfig'),
+        'condition' => $this->config->readValue(['webserver', 'overwriteconfig']),
       ],
     ];
   }