Refactor the github client behaviors into a GithubClient wrapper.
Fix comment to reflect updated logic in _getVersion.