fix compile error in fetch_packages.sh