Fix rspec detection code

The rspec detection code was broken when your path included multiple strings that looked like a version triplet.

This fixes the same problem as #20 but using the method @citizenparker recommended.