The existing purge script for Darwin would fail and stop at many stages. This commit makes the script more robust to certain failures that were observed and documented in https://github.com/status-im/status-mobile/issues/16404