Fixed an error in the foundry_install script that can accidentally
delete files after building under certain circumstances.  Also:
Upated the JSON file to capture the commit state of the most recent
changes to the GF standard cell libraries.
diff --git a/VERSION b/VERSION
index ffcaef1..4480980 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.0.366
+1.0.367
diff --git a/common/foundry_install.py b/common/foundry_install.py
index 231c316..0b085e0 100755
--- a/common/foundry_install.py
+++ b/common/foundry_install.py
@@ -1160,17 +1160,17 @@
                     if not have_lefanno:
                         create_lef_library(destlibdir, compname, do_compile_only, excludelist)
 
-                if do_compile_only == True:
-                    if newname and targname:
-                        if os.path.isfile(targname):
-                            if have_lefanno:
-                                # If the original source is a single file
-                                # but is used for annotation, then save the
-                                # file name and delete it just before writing
-                                # the LEF library
-                                lef_savelibname = targname
-                            else:
-                                os.remove(targname)
+                    if do_compile_only == True:
+                        if newname and targname:
+                            if os.path.isfile(targname):
+                                if have_lefanno:
+                                    # If the original source is a single file
+                                    # but is used for annotation, then save the
+                                    # file name and delete it just before writing
+                                    # the LEF library
+                                    lef_savelibname = targname
+                                else:
+                                    os.remove(targname)
 
                 # "rename" with "compile" or "compile-only":  Change the name
                 # of the compiled file.
diff --git a/gf180mcu/gf180mcu.json b/gf180mcu/gf180mcu.json
index 8a14437..32dfdc1 100644
--- a/gf180mcu/gf180mcu.json
+++ b/gf180mcu/gf180mcu.json
@@ -84,13 +84,13 @@
         "magic": "MAGIC_COMMIT"
     },
     "reference": {
-        "open_pdks": "90c2c20df9ecfae454fb9374e3c5fb0dc7a1a185",
+        "open_pdks": "141eea4d1bb8c6d4dd85fcbf2c0bdface7df9cfc",
         "magic": "fb091fa03f3646b0f90639a0798b711ca400941d",
         "gf180mcu_pdk": "a897aa30369d3bcec87d9d50ce9b01f320f854ef",
         "gf180mcu_fd_pr": "132dc738056751efdea1cd437c26c45e49862b07",
         "gf180mcu_fd_io": "bcaa40aaf6cf04d6e9cb143d0e5b0de9429e53ab",
-        "gf180mcu_fd_sc_mcu7t5v0": "25418d2440742819f3685c6719c3e5ea3e60cfc7",
-        "gf180mcu_fd_sc_mcu9t5v0": "60158ccbaac3eed081d94357065e94caabb3b553",
+        "gf180mcu_fd_sc_mcu7t5v0": "05bdaa35c3e2f856b3f8240e079de41bf7de9e57",
+        "gf180mcu_fd_sc_mcu9t5v0": "604a2d52319350ff0a57715c143b7efa2e174b6e",
         "gf180mcu_fd_ip_sram": "9c411928870ce15226228fa52ddb6ecc0ea4ffbe"
     }
 }