Updated script for mac platform build