test_watcher: fix for Ruby trunk r40195 and later