Fixed OSX's packaging script