add support for pattern matching in fetch fallbacks, add rubygems fallback to GH, fix #3218