build.sh: fix bash-isms
Merge pull request #59 from dolmen/fix/bashisms

build.sh: fix bash-isms