protected function updateAutoloader()
    {
        $cwd = getcwd();

        try {
            /** @var DumpAutoload $autoload */
            $autoload = $this->actions['autoload'];
            $autoload->execute();
        } catch (PackageManagerException $e) {
            // Write access is potentially disabled
        }

        chdir($cwd);
    }