This allows to clean up the code a little.
In case of a singleobj build and a provided output file (.exe or .obj). The dmd-testsuite tests used to produce lots of .o files while expecting .obj ones as specified in the command line.
See pull request #974 for the original code.