diff --git a/src/Handler.php b/src/Handler.php
index 741b8a6ebf628c3150a39dff7e6c90e93ef7b7ed..0472c497e0d703014b323512ac1e7203f138ab67 100644
--- a/src/Handler.php
+++ b/src/Handler.php
@@ -40,6 +40,7 @@ class Handler extends BaseHandler {
       ];
     }
 
+    $rootDir = getcwd();
     $installationManager = $this->composer->getInstallationManager();
     foreach ($this->composer->getRepositoryManager()->getLocalRepository()->search('lakedrops/*') as $pkg) {
       $pluginRoot = $installationManager->getInstallPath($this->getPackage($pkg['name']));
@@ -49,13 +50,13 @@ class Handler extends BaseHandler {
           $ahoy['commands'][$command] = $commands;
           if (isset($commands['imports']) && is_array($commands['imports'])) {
             foreach ($commands['imports'] as $key => $import) {
-              $ahoy['commands'][$command]['imports'][$key] = './vendor/' . $pkg['name'] . '/' . $import;
+              $ahoy['commands'][$command]['imports'][$key] = '.' . substr($pluginRoot, strlen($rootDir)) . '/' . $import;
             }
           }
         }
       }
     }
-    $file = getcwd() . '/.ahoy.yml';
+    $file = $rootDir . '/.ahoy.yml';
     file_put_contents($file, $rendered = Yaml::dump($ahoy, 9, 2));
     $this->gitIgnore('.ahoy.yml');
   }