updated build.sh, because it was failing at travis-ci