Updated the build script to use [[ test instead of [