Too much change to do this? 
```
if ENV['SCALR_KEY_ID'] && ENV['SCALR_ACCESS_KEY']
      Scalr.key_id = ENV['SCALR_KEY_ID']
      Scalr.access_key = ENV['SCALR_ACCESS_KEY']
    elsif access_file = resolve_access_info_file
      scalr_access_info = Scalr.hash_from_file(access_file)
      Scalr.key_id = scalr_access_info[:scalr_key_id]
      Scalr.access_key = scalr_access_info[:scalr_access_key]
    end
```