because of missing depends. Keep in mind that build_path_list has
to be extensive to avoid LISTING errors...
So, if we meet a stub there, we should do our best to avoid it.
Some of these checks are probably slightly overkill.
problem noticed by landry@