protected static function initStableRelease()
    {
        $releasePathStable = '';
        $path = \Deployer\get('deploy_path');
        $hasStableRelease = \Deployer\test("[ -d $path/current/ ]");
        if ($hasStableRelease) {

            // make shure we do not have an array at this point TODO: Check why this workaround is necessary
            $readlinkBin = \Deployer\get('readlink_bin');
            if (is_array($readlinkBin)) {
                $readlinkBin = current($readlinkBin);
            }

            if (PHP_OS === 'Darwin') {
                $releasePathStable = (string)\Deployer\run("$readlinkBin -n $path/current");
            } else {
                $releasePathStable = (string)\Deployer\run("$readlinkBin -f $path/current/");
            }
            \Deployer\set('release_path_stable', $releasePathStable);
        }
        if (\Deployer\isVerbose()) {
            \Deployer\writeln("release_path_stable = '{$releasePathStable}'");
        }
    }