Fix boolean style typos for define-vm scripts

Also fix some other typos.

Change-Id: Iae4a49c90d53c152d54b6fadbdc66a04e837ce71
Related-Prod: PROD-28144 (PROD:28144)
diff --git a/predefine-vm/define-vm.sh b/predefine-vm/define-vm.sh
index 17f21c7..93f05a5 100755
--- a/predefine-vm/define-vm.sh
+++ b/predefine-vm/define-vm.sh
@@ -67,7 +67,7 @@
   <bridge name="${network}" />
   <ip address="${gateway}" netmask="${netmask}"/>
 EOF
-    if [[ ${nat} ]]; then
+    if [[ "${nat}" =~ [Tt]rue ]]; then
         cat <<EOF>> $(pwd)/${network}.xml
   <forward mode="nat"/>
 EOF
@@ -123,7 +123,7 @@
       <address type='drive' controller='0' bus='0' target='0' unit='0'/>
     </disk>
 EOF
-if [[ ! ${VM_MGM_BRIDGE_DISABLE} ]]; then
+if [[ "${VM_MGM_BRIDGE_DISABLE}" =~ [Ff]alse ]]; then
     create_bridge_network "${VM_MGM_NETWORK_NAME}" "${VM_MGM_BRIDGE_NAME}"
     cat <<EOF >> $(pwd)/${VM_NAME}-vm.xml
     <interface type='bridge'>
@@ -143,7 +143,7 @@
 EOF
 fi
 
-if [[ ! ${VM_CTL_BRIDGE_DISABLE} ]]; then
+if [[ "${VM_MGM_BRIDGE_DISABLE}" =~ [Ff]alse ]]; then
     create_bridge_network "${VM_CTL_NETWORK_NAME}" "${VM_CTL_BRIDGE_NAME}"
     cat <<EOF >> $(pwd)/${VM_NAME}-vm.xml
     <interface type='bridge'>