Fix for key auth with private repos.