[darwin] bin upload script multi osx compatibility