Fix Ant build create MacOS dmg if built using Mac.