Fixed tests in build.sh for Linux compatibility