fix lookup of potential comp unit candidates

In case we have already seen a basename of a candidate we dropped
additional candidates. Therefor we missed a precompiled cu when we
already had seen a source file. Since the content of a directory
is not ordered the result depended on the phase of the moon, mostly.