relaxing regex used to find already installed gems

* not sure what the intent was for all the complication