fix detecting if flags/patches are applied for the named rubies warning, update #2399