working build_packages.sh