We're hunting for package dirs and spec files more and more in the code, walking the entire project tree etc., even though we either know where all that is right away (for projects generates from templates), or could at least cache that information somewhere. Not for this CL, but we should improve on that.