Simplify reg exp for getting gem versions