Update Ruby 1.8 assert_output to handle Regexp