Update master.sh script to properly compare values

The if statemetns were not properly comparing values
without surrounding [ ]