y2base.sh: made more readable