moved installation of $packages before $make_packages