From https://github.com/andreyvit/create-dmg.git, commit 5acf22fa87e1b751701f377efddc7429877ecb0a
