Update the disk image creation script so it works on newer versions of OS X