Don't assume origin when getting the remote url.

Fixes issue #51