Updated mac dmg script to prevent errors