Fixes deployment state check in PyGlassModelUtils in osx.