[scripts] improve setup_proprietary_gfx_drivers

The previous version was removing package files in a greedy way,
forcing equo to re-download packages every time. This new version
is able to cherry-pick the needed files without causing any side
effects.