Fix for bug 982549

- Simplified regex to work with ruby 2.0 in Fedora 19