Some DRY cleanup/error reporting improvement for gitfs

This commit does some DRY cleanup in the ``__virtual__`` function, as well
as some of the provider verification code. In addition, it fixes a
couple minor aesthetic error reporting issues.