Correct has_gem_included? test helper

It was always looking for rails_12factor, it now uses the actual gem
name that is passed in and makes sure it is usable in a Regex.