partial rework of netbsd version detection