better error message for Mac and Linux