build_dmg.sh: include version in DMG file name.

DMG files are now named "file_$VERSION.dmg". Also compacted things
a bit in the build_dmg function.

Change-Id: Ica016bd2c54573e8498ffe67d223422e56d7c79a
1 file changed