Build: Reduce duplication
Build: Make a generic version of yumdep