Start supporting output_dir for randcontest command.