get_remote should not return more than 1 line

otherwise it's broken in the case of multiple remotes
Merge pull request #8 from rgrinberg/master

get_remote should not return more than 1 line