unmount dmg in the start of the build

try unmount dmg if it was mounted previously (e.g. developer mounted dmg, installed app and forgot to unmount it)