Hide some packages behind a feature-flag + clean-up

* Clean-up where checking for distro
* Preload the index for "git" (speeds up some operations on slower file
  systems)
* Create scripts to install packages via "apt"