Apple: Python subprocess.run fails with CalledProcessError on Mac but works on Windows