[Building] Fixed building on Mac
[Mac] Fixed invocation of create_dmg script in macdeploy