diff --git a/gradint-build/Makefile b/gradint-build/Makefile
index 793ef0d66c407b109eabcd4a879c605540266585..cb2f1773be712e9eea0bf5a061dda7c6cdcd6fcf 100644
--- a/gradint-build/Makefile
+++ b/gradint-build/Makefile
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/booktime.py b/gradint-build/src/booktime.py
index 4733867fec32c6d8688d26d40ff422918ac02ac3..828ff80d72e264046e2ad3f96cf30f8bf450bdc9 100644
--- a/gradint-build/src/booktime.py
+++ b/gradint-build/src/booktime.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/filescan.py b/gradint-build/src/filescan.py
index 58cfcde0552ba2003c50f98f70c7dcc97331ada5..ae0491ce736508fa86bb1295741a34f4a9404564 100644
--- a/gradint-build/src/filescan.py
+++ b/gradint-build/src/filescan.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/frontend.py b/gradint-build/src/frontend.py
index 464d1fb3f79b510c892aa6ed0743d7ffdcdee4f1..fbea1110cb141ac06ed720e59b9e5ba99ebd71e5 100644
--- a/gradint-build/src/frontend.py
+++ b/gradint-build/src/frontend.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/lessonplan.py b/gradint-build/src/lessonplan.py
index 5dedc6475919978faca31dd0cf411897c4af86be..4120b3e0a10516b4161ce92ffe7946ec27868270 100644
--- a/gradint-build/src/lessonplan.py
+++ b/gradint-build/src/lessonplan.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/loop.py b/gradint-build/src/loop.py
index 10c16a1c38b22264cc5aaaf89f165fa46b7fbf74..f4ad142096d6d8e80042a2af6654118d848c7910 100644
--- a/gradint-build/src/loop.py
+++ b/gradint-build/src/loop.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/makeevent.py b/gradint-build/src/makeevent.py
index 88617d36acd75a79f90defa1ace8456defb6df17..a5c28a2eac3ab5a181763d9cef9f06cfd845f557 100644
--- a/gradint-build/src/makeevent.py
+++ b/gradint-build/src/makeevent.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/play.py b/gradint-build/src/play.py
index cf440198052c509cf3a0cda86e6f6064cd427ce0..92b1a1af36696a4b43d0c9183a9a262a0ecce2f4 100644
--- a/gradint-build/src/play.py
+++ b/gradint-build/src/play.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/recording.py b/gradint-build/src/recording.py
index 72057344ab1deaf53fdb964e621a03a2546d4d2f..288558615f0a5a2253625b91e5c923a789ffa2cb 100644
--- a/gradint-build/src/recording.py
+++ b/gradint-build/src/recording.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/sequence.py b/gradint-build/src/sequence.py
index f1345dd0c0d6f96e8b5d6ad6a3a6e1d109864bb3..a57a8d138c20d32df7b0e8836c04849bd43f2adb 100644
--- a/gradint-build/src/sequence.py
+++ b/gradint-build/src/sequence.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/synth.py b/gradint-build/src/synth.py
index e8874f2aa311b3e62f074a90ba2bde42b3381afb..ca9d437659acd4101b839cf950438d447f6e77f2 100644
--- a/gradint-build/src/synth.py
+++ b/gradint-build/src/synth.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/src/system.py b/gradint-build/src/system.py
index e34d21c5b42d2a45d330ec06a26d0f64c43de000..be46093856d3af958dddc89eb57e8bf817bd779b 100644
--- a/gradint-build/src/system.py
+++ b/gradint-build/src/system.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
@@ -443,6 +443,9 @@ if winsound or winCEsound or mingw32 or riscos_sound or not hasattr(os,"tempnam"
         global tempnam_no ; tempnam_no += 1
         return tmpPrefix+str(tempnam_no)
     os.tempnam = os.tmpnam = tempnam
+elif (macsound or sys.platform.lower().find("bsd")>0) and os.environ.get("TMPDIR",""): # BSD tempnam uses P_tmpdir instead, override
+    tempnam0 = os.tempnam
+    os.tempnam=lambda *args:tempnam0(os.environ["TMPDIR"])
 
 if disable_once_per_day==1:
   if once_per_day==3: sys.exit()
diff --git a/gradint-build/src/top.py b/gradint-build/src/top.py
index c3c7a17585dd99248a4d5270ae4595abfe3ac99e..7fd303334f38880a3a56342b848afdaa44d18b99 100644
--- a/gradint-build/src/top.py
+++ b/gradint-build/src/top.py
@@ -2,7 +2,7 @@
 # -*- coding: utf-8 -*-
 #   (Python 2 or Python 3, but more fully tested on 2)
 
-program_name = "gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+."
+program_name = "gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+."
 
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
diff --git a/gradint-build/src/users.py b/gradint-build/src/users.py
index cfdedeb1d9afdf6f7c15d3e9a1f11242fc1b836b..ba44b4a9a3798103e036a601e5baa6a5b9a8bb41 100644
--- a/gradint-build/src/users.py
+++ b/gradint-build/src/users.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or
diff --git a/gradint-build/thindown.py b/gradint-build/thindown.py
index c0c02b5615e8991958b356a6c0d9ba6e6927592d..32c70d0cb90d50383d0db8ea730d74e5377c7d13 100644
--- a/gradint-build/thindown.py
+++ b/gradint-build/thindown.py
@@ -1,5 +1,5 @@
 # This file is part of the source code of
-# gradint v3.06 (c) 2002-20 Silas S. Brown. GPL v3+.
+# gradint v3.061 (c) 2002-20 Silas S. Brown. GPL v3+.
 #    This program is free software; you can redistribute it and/or modify
 #    it under the terms of the GNU General Public License as published by
 #    the Free Software Foundation; either version 3 of the License, or