dmg: fix deterministic dmg creation and docs