Add output-dir program option.