prevent crash when remote name is short

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Merge pull request #67 from hallyn/fixremotecrash

prevent crash when remote name is short