fix logic of register_default_spec

Register default spec currently only checks the first file to see if it should use the new spec type (i.e. lib/foo.rb) or the old one (i.e. foo.rb).

This patch fixes that misbehavior at the cost of (possibly) going through all files for each require path.