Improved mac dmg script