Issue 13603 - rdmd: if dmd.conf is missing, always rebuilds the target

https://issues.dlang.org/show_bug.cgi?id=13603

Also a few minor refactorings and optimizations.