Grep version check for exclude argument format

This addresses #2650 which has not been merged.  I think this solution is fairly reasonable.  It relies only on the knowledge that versions 2.5.3 and above support --exclude-dir and below that support --exclude.