Convert the remote checking to use Rugged

Also removed the private #sh_string method because it is not longer
used.