Fix grep_xseg to work both with include/exclude