incorporated fixes from https://github.com/Homebrew/homebrew-science/issues/1182