Fix s/$remote// mistake.

$remote could have contained /.