Homebrew ref: http://qiita.com/yoshi-naoyuki/items/503338f0b975a3b43f18