fix regexp when install ruby 2.1.0

since the version of 2.1.0 is without the '-pxxx'
```shell
  ruby-build 2.1.0
```