Portability fixes to run Homebrew on Linux systems
Merge branch 'linux' of https://github.com/sennychu/homebrew into linux