Update the remote check to use Rugged

This removes the last direct shell call from the Repository, all git
commands should now be executed through either Rugged or Grit.

The shell_tools gem remains as a dependency because it is still being
used in some of the tests.