Add yesno function (from coreutils/lib/yesno.c)