Yah, in fact the whole thing can be simplified by extracting straight into ./dmd/ - stay tuned.