Better testing

Rewrite dxr-build with optparse so I don't have to keep looking at that tangle. Also add some implicit finding of config files for later.