Fix check for inherited methods on 1.8.7

The method instance_methods returns an array of strings on Ruby 1.8.7.
Convert the strings to symbols so that the guard clause works on 1.9+.