* build/generator/gen_base.py (TargetLinked): Remove some redundant and wrong code. (_collect_paths): Document what happens if the pattern is not found.