prefer the use of references in private static function in system_exec.cc