Close GH-739: Improve GitHub detection in resolverFactory.js.