remove dmg before creating