Fixed $this issue in static function of UnixShell.