Fix --new option for doctests.[D