Fix: Check for correct error message on mac os. Closes #66