build rules: neater check for Linux-or-*BSD, thanks Tim Blechmann