autoproject.sh: use next instead of getline