Update packaging script for MacOS