This logic should probably just be rolled up into:

``` ruby
s3_host   = ENV['BOXEN_S3_HOST'] || 's3.amazonaws.com'
s3_bucket = ENV['BOXEN_S3_BUCKET'] || 'boxen-downloads'

"http://#{s3_host}/#{s3_bucket}/homebrew/#{os}/#{file}"
```