Record current opam switch in result files.