This section's job is to build the final, canonical URL for the driver.  This means getting rid of any irregularities (extra slashes and such), getting rid of username@, etc.--anything that doesn't purely describe the location.  For AWS, it means we look up the account ID and put that instead of the profile name or access key.  In your case, I think you've got the right code.