OSX build: Fix DMG generation in console-only environment