handle multiple include/exclude patterns properly