make regex for grabbing the syntax error work for ruby 2.1.x