Update the release script to work on macOS.