Fix NameError in macdeploy script
Merge pull request #4188

c6e36b0 Fix NameError in macdeploy script (Federico Bond)