base.sh: small bug fix