build.sh: use exit not return. bash will print a warning message if
return is not used within a subroutine.