Fix hub when a remote has local path instead of URL

Fixes #470