runtests.pl: Optimised feature present checking code

...to exclude not present features.