get_remote should not return more than 1 line

otherwise it's broken in the case of multiple remotes