Add #msh environment save
Fixes for OS X