better error for bad remote URLs

this will surface errors earlier

@xavier @robolson