add if in sqlplus exlude/includepattern properties

fix minor bugs