For one possible solution, see
https://github.com/Homebrew/homebrew-science/blob/master/igv.rb#L9