Detect linuxbrew installation issues and ensure clean re-installation. Fixes #253. Fixes #254