main: now whitelists work on ruby-1.8 as well (no String#match method)

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>